﻿<%@ Page Language="C#" AutoEventWireup="true" Inherits="Left" Codebehind="Left.aspx.cs" %>
<%@ Register Assembly="AjaxControlToolkit" Namespace="AjaxControlToolkit" TagPrefix="cc1" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml" >
<head runat="server">
    <title>无标题页</title>
    <style type="text/css">
    td {
	font-size: 12px;
	line-height: 19px;
	color: #474747;
	font-family: arial;
    }
    .ColumnMeau
	{
	border-bottom-width:1px; border-bottom-color:#777777; border-bottom-style:dashed;
    background-color:#f1f0f0;
    font-size:12px;
    font-weight:bold;
	padding:5px;
	margin-top:3px;
	/*text-indent:20px;*/
	}
	.accordionContent
	{
    background-color:#f1f0f0;
    font-family:Arial;
    border-top:none;
    padding:5px;
    padding-top:10px;
	text-indent:20px;
	}
    </style>
</head>
 <script language="JavaScript">
 <!--
 	//add  By  ywm  2009-5-8      的状态保留  判断表格行的当前行是否相同 (尤为民提供)
     function ClearBgcolor(oTr)
     {  
        var _currentDIV= oTr.parentElement.parentElement.nextSibling ; 
        var _length= _currentDIV.getElementsByTagName("table").length;    //DIV下面table的个数 
        for (var mm = 0; mm < _length; mm++)
         {
              _currentDIV.getElementsByTagName("table")[mm].style.backgroundColor = "";
              _currentDIV.getElementsByTagName("table")[mm].style.width='99%'; 
         }
     }
     
     
        function SetTrBgcolor(oTr)   //表格行中的保留状态

        {  
            var _currentA = oTr.parentElement;
            if( !_currentA.href ) return ;
            var _currentTB= oTr.parentElement.parentElement.parentElement.parentElement.parentElement;//当前table
            var _currentDIV=_currentTB.parentElement; //当前DIV
            var _length= _currentDIV.getElementsByTagName("table").length;    //DIV下面table的个数 
            try
            {
              ClearBG(_currentDIV);
            }
            catch(e)
            {
                ;
            }
            for (var mm = 0; mm < _length; mm++)
            {   
                if (_currentTB.innerText ==_currentDIV.getElementsByTagName("table")[mm].innerText)
                {  
                    _currentTB.style.backgroundColor = "#abcdef"; 
                    _currentA.blur() ;  //  _currentA.click(); 
                }
                else
                {
                   _currentDIV.getElementsByTagName("table")[mm].style.backgroundColor = "";
                }
            } 
       }
       
       function ClearBG(_currentDIV)
       {
            var _tables= _currentDIV.parentElement.getElementsByTagName("table");
            for (var mm = 0; mm < _tables.length; mm++)
             {
                  _tables[mm].style.backgroundColor = "";
                  _tables[mm].style.width='99%'; 
             } 
       }        
 //-->
 </script>
<body style="background-color:#f1f0f0; padding-left:0px;">   
    <form id="form1" runat="server">
            <asp:ScriptManager ID="ScriptManager1" runat="server">
            </asp:ScriptManager>
            <cc1:Accordion ID="Accordion1" runat="server" SelectedIndex="-1" HeaderCssClass="ColumnMeau"
                ContentCssClass="accordionContent" FadeTransitions="false" FramesPerSecond="50"
                TransitionDuration="100" AutoSize="None" RequireOpenedPane="false" SuppressHeaderPostbacks="true" Width="180px">
            </cc1:Accordion>
    </form>
</body>
</html>
